package cn.com.cabinet.manager.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.com.easy.utils.SecurityUtils;

@Controller
@RequestMapping("/manager/shal")
public class Sha256Controller {
	
	@RequestMapping("/index")
	public String index(){
		return "/util/sha256/index";
	}
	
	@RequestMapping("/get")
	@ResponseBody
	public String getsha256(String Proclaimed){
		
		SecurityUtils.SHA256(Proclaimed);
		return SecurityUtils.SHA256(Proclaimed);
	}

}
